<template>
  <div class="team">
    <h2>2018-04-07</h2>
      <el-table :data="teamData" ref="multipleTable">
          <el-table-column type="selection" width="55">
          </el-table-column>
          <el-table-column prop="c1" label="状态" width="120">
          </el-table-column>
          <el-table-column prop="c2" label="比赛时间" width="120">
          </el-table-column>
          <el-table-column prop="c4T1" label="主队" width="120">
          </el-table-column>
          <el-table-column prop="c4R" label="比分" width="120">
          </el-table-column>
          <el-table-column prop="c4T2" label="客队" width="120">
          </el-table-column>
      </el-table>
  </div>
</template>
<script>
import axios from 'axios'

const apiURLLocal = 'http://localhost:28133/api/product'

export default {
  data () {
    return {
      msg: 'Football',
      teamData: []
    }
  },
  created: function () {
    axios.get(apiURLLocal)
      .then(Response => {
        console.log(Response.data)
      })
      .catch(error => {
        console.log(error)
        alert('网络错误,不能访问' + error)
      })
  }
}
</script>
<style scoped>
.team{
    height: 100%;
}
</style>
